import request from '@/utils/request'

// 线下培训-查询

export function getdevlist(data) {
  return request({
    url: '/radiation/train',
    method: 'get',
    params: data
  })
}
//线下培训-新增培训

export function addtrain(data) {
  return request({
    url: '/radiation/train/add',
    method: 'post',
    data
  })
}
//修改培训状态 ----1.开始培训2. 结束培训
export function updatetrain(data) {
  return request({
    url: '/radiation/train/update',
    method: 'post',
    data
  })
}
//线下培训管理----教育详情接口
export function gettrain(id) {
  return request({
    url: '/radiation/train/' + id,
    method: 'get'
  })
}
//线下培训-下载二维码
    export function gettrainqrcode() {
  return request({
    url: '/radiation/train/stream-image/',
    method: 'get'
  })
}
//线下培训管理-查看签到记录
export function gettrainrecord(id) {
  return request({
    url: '/radiation/personnel/' + id,
    method: 'get'
  })
}
//线下培训-上传培训中文件
export function uploadtrainfile(data) {
  return request({
    url: '/radiation/train/file',
    method: 'post',
    data
  })
}
